// 移动端路由配置

export const mobileRoutes = [
  {
    path: "/mobile",
    component: () => import("@/views/mobile/layout/index.vue"),
    meta: {
      title: "移动端首页"
    },
    children: [
      {
        path: "",
        component: () => import("@/views/mobile/home/index.vue"),
        meta: {
          title: "移动端首页",
          requiresAuth: true
        }
      },
      {
        path: "hot",
        component: () => import("@/views/mobile/hotShowing/index.vue"),
        meta: {
          title: "热映影片",
          requiresAuth: true
        }
      },
      {
        path: "detail/:id",
        component: () => import("@/views/mobile/detail/index.vue"),
        meta: {
          title: "电影详情",
          requiresAuth: true
        }
      },
      {
        path: "seat/:showId/:movieId",
        component: () => import("@/views/mobile/seat/index.vue"),
        meta: {
          title: "选座购票",
          requiresAuth: true
        }
      },
      {
        path: "order",
        component: () => import("@/views/mobile/order/index.vue"),
        meta: {
          title: "我的订单",
          requiresAuth: true
        }
      },
      {
        path: "user",
        component: () => import("@/views/mobile/user/index.vue"),
        meta: {
          title: "个人中心",
          requiresAuth: true
        }
      }
    ]
  },
  {
    path: "/mobile/login",
    component: () => import("@/views/mobile/login/index.vue"),
    meta: {
      title: "移动端登录"
    }
  }
];